import random

def shuffle_edges (edges, n, k):
	random.seed(n*k)
	for i in range(n): random.shuffle(edges)
	return edges